/**
 * 
 */
package metalink.admin;

import java.util.ArrayList;

import com.opensymphony.xwork2.ActionSupport;

import model.admin.HostelMo;

import vo.mixed.HostelStudentVo;

/**
 * @author Sony
 *
 */
public class GetHostelRoomsList extends ActionSupport{
	int residential_id;
	ArrayList<HostelStudentVo> studentDetailsList;
	public String execute()
	{

		studentDetailsList=new ArrayList<HostelStudentVo>();
		HostelMo mo = new HostelMo();
		//System.out.println("res id :"+residential_id);
		try {
			studentDetailsList=mo.getStudentsFromHostels(residential_id);
		} catch (Exception e) {
			addActionError(e.getMessage());
		}
		return SUCCESS;
	}
	
	
	
	
	public ArrayList<HostelStudentVo> getStudentDetailsList() {
		return studentDetailsList;
	}

	public void setStudentDetailsList(ArrayList<HostelStudentVo> studentDetailsList) {
		this.studentDetailsList = studentDetailsList;
	}

	public int getResidential_id() {
		return residential_id;
	}

	public void setResidential_id(int residential_id) {
		this.residential_id = residential_id;
	}
}
